package com.campus_information_portal.service;

import com.campus_information_portal.entity.Notice;
import com.campus_information_portal.entity.Project;
import com.campus_information_portal.util.Message;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.net.UnknownHostException;
import java.util.Date;

/**
 * 社会实践service层
 *
 * @author
 * @create 2018-05-24 15:13
 **/
@Service
public interface ProjectService {
    Message addProject(int termId,
                       int stuInfoId,
                       String projectName,
                       String projectContent,
                       String projectPhonenum,
                       Date projectStartDate,
                       Date projectEndDate,
                       String projectContactPeople,
                       String projectPlatform,
                       int projectState);

    Message deleteProject(int projectId);

    Message queryAllProject();

    Message queryMyProject(int stuNum);

    Message updateProjectstate(int projectId, int projectState);

    Message updateAProject(Project project);

    Message queryProjectById(int projectId);

    Message download(int stuNum, String stuName, String stuSex, String academyName,
                     String termYear, String termNum, String startDate, String endDate,
                     String contact, String contactPhone, String platform, String proName,
                     String proContent) throws UnknownHostException;
}
